package day0728;

public class Test2 {
    public static void main(String[] args) {
        int r=getSum(6,9,7,6,3);
        System.out.println(r);
    }
    private static int getSum(int... a) {
        int sum=0;
        for (int i = 0; i < a.length; i++) {
            sum=sum+a[i];
        }
        return sum;
    }
}
